package org.concepts.java.lucene;

import java.io.File;
import java.io.IOException;

import org.apache.lucene.queryParser.ParseException;
import org.concepts.java.util.JavaLuceneUtil;
import org.junit.Test;

public class TestHello {

  /**
   * Ensure that Hello search feature is working.
   * 
   * @throws ParseException
   * @throws IOException
   */
  @Test
  public void testHello() throws IOException, ParseException {
    Hello hello = new Hello(new File(JavaLuceneUtil.getResourcesDir()
        + System.getProperty("file.separator") + "hello"));
    hello.search("Hello");
  }

}
